#ifndef TXTBOOKDATABUILDER_H
#define TXTBOOKDATABUILDER_H

#include <QObject>
#include <QWebFrame>
#include <QWebPage>
#include "bookdatabuilder.h"
#include "bookdata.h"

class TXTBookDataBuilder : public BookDataBuilder
{
public:
    TXTBookDataBuilder(const QString &filename);
    ~TXTBookDataBuilder(){delete page;}
    virtual void parse();
protected:
    virtual void addCover(BookData* bookData);
private:
    QWebPage* page;
    QString templateFile;
    QString substract(QString &lines,QString &line);
};

#endif // TXTBOOKDATABUILDER_H
